<extend name="Public/base"/>

<block name="style">
<link href="__CSS__/jtbk.css" rel="stylesheet" type="text/css"/>

</block>
<block name="content">
    <ul class="nav nav-tabs">
    <li class="active"><a href="{:U('Index/index')}"><i class="glyphicon glyphicon-home"></i>首页</a></li>
   <li><a href="{:U('Index/add')}">资料上传</a></li>
   <li><a href="{:U('Index/search')}">资料搜索</a></li>
   <li><a href="{:U('Index/myupload','id='.$vo['id'])}" >我的上传情况</a><li>
   </ul>
    <!--内容栏start-->
     <div class="row"> 
	       <div class="col-md-12">
	       <h4 style="color:#5A81A8"><i class="glyphicon glyphicon-th-large"> </i>集体备课管理平台<a href="__SELF__"></a> </h4>
	       </div>
	       <div class="col-md-4">
				    <div class="panel panel-info">
					   <div class="panel-heading">
					      <h5 class="panel-title">
					      <a href="{:U('Index/search')}">最近上传 (点击搜索)</a>
					      <span class="pull-right glyphicon glyphicon glyphicon-forward"></span></h5>					
					   </div>
					   <div class="panel-body subjectlist">
					      	 <ol style="margin-left:-25px;">
					      	 <foreach name='newlist' item="v">
						    <li><a href="{:U('Index/detail','id='.$v['id'])}">{$v.title}</a><span class="pull-right">{$v.teacher}  {$v.update_time|date='m-d',###}</span></li>
						    </foreach>
						    </ol>
					   </div>
					</div>
		         </div>
	      <foreach name='list' item='vo'>
		         <div class="col-md-4">
				    <div class="panel panel-info">
					   <div class="panel-heading">
					      <h5 class="panel-title">
					      <a href="{:U('Index/listsub','sid='.$vo['id'])}">{$vo.subject}集体备课</a>
					      <span class="pull-right glyphicon glyphicon glyphicon-forward"></span></h5>					
					   </div>
					   <div class="panel-body subjectlist">
					   <notempty name="vo.postlist">
					      	 <ol style="margin-left:-25px;">
					      	 <foreach name='vo.postlist' item="v">
						    <li><a href="{:U('Index/detail','id='.$v['id'])}">{$v.title}</a><span class="pull-right">{$v.teacher}  {$v.update_time|date='m-d',###}</span></li>
						    </foreach>
						    </ol>
						 <else/>
						 <div style="font-size:2em;padding:1em 0;color: #ccc;text-align: center">暂无上传</div>
						 </notempty>   
					   </div>
					</div>
		         </div>
  	         </foreach>
		 
     </div>
  </block>